import request from '@/utils/request'

// 查询楼座列表
export function listBalcony(query) {
  return request({
    url: '/basic/balcony/list',
    method: 'get',
    params: query
  })
}

// 查询楼座详细
export function getBalcony(balconyId) {
  return request({
    url: '/basic/balcony/' + balconyId,
    method: 'get'
  })
}

// 新增楼座
export function addBalcony(data) {
  return request({
    url: '/basic/balcony',
    method: 'post',
    data: data
  })
}

// 修改楼座
export function updateBalcony(data) {
  return request({
    url: '/basic/balcony',
    method: 'put',
    data: data
  })
}

// 删除楼座
export function delBalcony(balconyId) {
  return request({
    url: '/basic/balcony/' + balconyId,
    method: 'delete'
  })
}
